package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 王同学
 */
@Mapper
@Repository
public interface OrderMapper {
    //分页查询
    List<Order> page(@Param("beg") String beginTime,
                     @Param("endTime") String endTime,
                     @Param("number") String number,
                     @Param("start") Integer start,
                     @Param("pageSize") Integer pageSize);

    boolean updateStatus(@Param("status") int status, @Param("id") String id);
}
